package com.gaofei.buss.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : gaofee
 * @date : 11:33 2021/5/29
 * @码云地址 : https://gitee.com/itgaofee
 */
@FeignClient(value = "storage-service")
@Component
public interface StorageFeign {

    @RequestMapping("/storageTbl/deduct")
    public Boolean deduct(@RequestParam("commodityCode") String commodityCode, @RequestParam("count") Integer count);
}
